home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2703 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 73 74 | 65 72 6e 2e 66 6f 6b 75 |Path: st|ern.foku|
|00000010| 73 2e 67 6d 64 2e 64 65 | 21 6e 65 77 73 0a 46 72 |s.gmd.de|!news.Fr|
|00000020| 6f 6d 3a 20 57 61 74 73 | 6f 6e 20 3c 73 61 79 65 |om: Wats|on <saye|
|00000030| 67 68 40 66 6f 6b 75 73 | 2e 67 6d 64 2e 64 65 3e |gh@fokus|.gmd.de>|
|00000040| 0a 4e 65 77 73 67 72 6f | 75 70 73 3a 20 63 6f 6d |.Newsgro|ups: com|
|00000050| 70 2e 6c 61 6e 67 2e 63 | 0a 53 75 62 6a 65 63 74 |p.lang.c|.Subject|
|00000060| 3a 20 52 65 3a 20 46 69 | 6c 65 20 53 69 7a 65 21 |: Re: Fi|le Size!|
|00000070| 0a 44 61 74 65 3a 20 54 | 75 65 2c 20 32 33 20 4a |.Date: T|ue, 23 J|
|00000080| 61 6e 20 31 39 39 36 20 | 31 31 3a 30 36 3a 33 37 |an 1996 |11:06:37|
|00000090| 20 2b 30 31 30 30 0a 4f | 72 67 61 6e 69 7a 61 74 | +0100.O|rganizat|
|000000a0| 69 6f 6e 3a 20 47 4d 44 | 20 46 4f 4b 55 53 20 2d |ion: GMD| FOKUS -|
|000000b0| 20 52 65 73 65 61 72 63 | 68 20 49 6e 73 74 69 74 | Researc|h Instit|
|000000c0| 75 74 65 20 66 6f 72 20 | 4f 70 65 6e 20 43 6f 6d |ute for |Open Com|
|000000d0| 6d 75 6e 69 63 61 74 69 | 6f 6e 20 53 79 73 74 65 |municati|on Syste|
|000000e0| 6d 73 0a 4d 65 73 73 61 | 67 65 2d 49 44 3a 20 3c |ms.Messa|ge-ID: <|
|000000f0| 33 31 30 34 42 33 32 44 | 2e 37 34 43 39 40 66 6f |3104B32D|.74C9@fo|
|00000100| 6b 75 73 2e 67 6d 64 2e | 64 65 3e 0a 52 65 66 65 |kus.gmd.|de>.Refe|
|00000110| 72 65 6e 63 65 73 3a 20 | 3c 34 65 31 31 70 68 24 |rences: |<4e11ph$|
|00000120| 37 33 33 40 68 61 6d 6d | 65 72 68 65 61 64 2e 64 |733@hamm|erhead.d|
|00000130| 61 64 64 2e 74 69 2e 63 | 6f 6d 3e 0a 4e 4e 54 50 |add.ti.c|om>.NNTP|
|00000140| 2d 50 6f 73 74 69 6e 67 | 2d 48 6f 73 74 3a 20 70 |-Posting|-Host: p|
|00000150| 6f 6c 6c 75 78 2e 66 6f | 6b 75 73 2e 67 6d 64 2e |ollux.fo|kus.gmd.|
|00000160| 64 65 0a 4d 69 6d 65 2d | 56 65 72 73 69 6f 6e 3a |de.Mime-|Version:|
|00000170| 20 31 2e 30 0a 43 6f 6e | 74 65 6e 74 2d 54 79 70 | 1.0.Con|tent-Typ|
|00000180| 65 3a 20 74 65 78 74 2f | 70 6c 61 69 6e 3b 20 63 |e: text/|plain; c|
|00000190| 68 61 72 73 65 74 3d 75 | 73 2d 61 73 63 69 69 0a |harset=u|s-ascii.|
|000001a0| 43 6f 6e 74 65 6e 74 2d | 54 72 61 6e 73 66 65 72 |Content-|Transfer|
|000001b0| 2d 45 6e 63 6f 64 69 6e | 67 3a 20 37 62 69 74 0a |-Encodin|g: 7bit.|
|000001c0| 58 2d 4d 61 69 6c 65 72 | 3a 20 4d 6f 7a 69 6c 6c |X-Mailer|: Mozill|
|000001d0| 61 20 32 2e 30 62 34 20 | 28 58 31 31 3b 20 49 3b |a 2.0b4 |(X11; I;|
|000001e0| 20 53 75 6e 4f 53 20 35 | 2e 34 20 73 75 6e 34 6d | SunOS 5|.4 sun4m|
|000001f0| 29 0a 54 6f 3a 20 53 75 | 64 68 65 65 72 20 56 65 |).To: Su|dheer Ve|
|00000200| 6d 75 6c 61 70 61 6c 6c | 69 20 3c 73 75 64 68 65 |mulapall|i <sudhe|
|00000210| 65 72 40 64 61 64 64 2e | 74 69 2e 63 6f 6d 3e 0a |er@dadd.|ti.com>.|
|00000220| 0a 53 75 64 68 65 65 72 | 20 56 65 6d 75 6c 61 70 |.Sudheer| Vemulap|
|00000230| 61 6c 6c 69 20 77 72 6f | 74 65 3a 0a 3e 20 0a 3e |alli wro|te:.> .>|
|00000240| 20 48 65 6c 6c 6f 20 4e | 65 74 74 65 72 73 2c 0a | Hello N|etters,.|
|00000250| 3e 20 0a 3e 20 49 73 20 | 74 68 65 72 65 20 61 20 |> .> Is |there a |
|00000260| 73 69 6d 70 6c 65 20 77 | 61 79 20 74 6f 20 66 69 |simple w|ay to fi|
|00000270| 6e 64 20 74 68 65 20 65 | 78 61 63 74 20 73 69 7a |nd the e|xact siz|
|00000280| 65 20 6f 66 20 61 20 66 | 69 6c 65 2e 20 49 20 77 |e of a f|ile. I w|
|00000290| 6f 75 6c 64 20 6c 69 6b | 65 20 74 6f 20 6b 6e 6f |ould lik|e to kno|
|000002a0| 77 20 6f 66 0a 3e 20 61 | 20 77 61 79 20 74 6f 20 |w of.> a| way to |
|000002b0| 64 6f 20 69 74 20 6f 74 | 68 65 72 20 74 68 61 6e |do it ot|her than|
|000002c0| 20 75 73 69 6e 67 20 6c | 73 20 2d 6c 20 61 6e 64 | using l|s -l and|
|000002d0| 20 67 65 74 74 69 6e 67 | 20 74 68 65 20 73 69 7a | getting| the siz|
|000002e0| 65 20 66 69 65 6c 64 20 | 66 72 6f 6d 20 74 68 65 |e field |from the|
|000002f0| 0a 3e 20 6f 75 74 70 75 | 74 2e 20 49 66 20 74 68 |.> outpu|t. If th|
|00000300| 65 72 65 20 69 73 20 61 | 20 55 4e 49 58 20 73 79 |ere is a| UNIX sy|
|00000310| 73 74 65 6d 20 63 61 6c | 6c 20 6f 72 20 73 6f 6d |stem cal|l or som|
|00000320| 65 66 75 6e 63 74 69 6f | 6e 20 74 68 61 74 20 72 |efunctio|n that r|
|00000330| 65 74 75 72 6e 73 20 74 | 68 65 20 66 69 6c 65 0a |eturns t|he file.|
|00000340| 3e 20 73 69 7a 65 20 70 | 6c 65 61 73 65 20 6c 65 |> size p|lease le|
|00000350| 74 20 6d 65 20 6b 6e 6f | 77 2e 0a 0a 59 6f 75 20 |t me kno|w...You |
|00000360| 6e 65 65 64 20 74 6f 20 | 6f 70 65 6e 20 74 68 65 |need to |open the|
|00000370| 20 66 69 6c 65 3a 0a 0a | 69 6e 74 20 66 64 20 3d | file:..|int fd =|
|00000380| 20 6f 70 65 6e 28 3c 66 | 69 6c 65 6e 61 6d 65 3e | open(<f|ilename>|
|00000390| 2c 20 4f 5f 52 44 4f 4e | 4c 59 29 3b 0a 0a 54 68 |, O_RDON|LY);..Th|
|000003a0| 65 6e 20 79 6f 75 20 67 | 6f 20 74 6f 20 74 68 65 |en you g|o to the|
|000003b0| 20 65 6e 64 20 6f 66 20 | 74 68 65 20 66 69 6c 65 | end of |the file|
|000003c0| 3a 0a 0a 73 69 7a 65 20 | 3d 20 6c 73 65 65 6b 28 |:..size |= lseek(|
|000003d0| 66 64 2c 20 30 2c 20 53 | 45 45 4b 5f 45 4e 44 29 |fd, 0, S|EEK_END)|
|000003e0| 3b 0a 0a 54 68 65 20 72 | 65 73 75 6c 74 20 6f 66 |;..The r|esult of|
|000003f0| 20 74 68 69 73 20 6f 70 | 20 69 73 20 61 6c 72 65 | this op| is alre|
|00000400| 61 64 79 20 74 68 65 20 | 73 69 7a 65 2e 0a 54 68 |ady the |size..Th|
|00000410| 69 73 20 69 73 20 61 20 | 71 75 69 74 65 20 70 6f |is is a |quite po|
|00000420| 72 74 61 62 6c 65 2c 20 | 62 75 74 20 73 6c 6f 77 |rtable, |but slow|
|00000430| 20 77 61 79 2e 0a 2d 2d | 20 0a 2a 09 47 72 65 65 | way..--| .*.Gree|
|00000440| 74 69 6e 78 20 66 72 6f | 6d 20 57 61 74 73 6f 6e |tinx fro|m Watson|
|00000450| 20 28 73 61 79 65 67 68 | 40 66 6f 6b 75 73 2e 67 | (sayegh|@fokus.g|
|00000460| 6d 64 2e 64 65 29 0a 09 | 68 74 74 70 3a 2f 2f 77 |md.de)..|http://w|
|00000470| 77 77 2e 66 6f 6b 75 73 | 2e 67 6d 64 2e 64 65 2f |ww.fokus|.gmd.de/|
|00000480| 6f 76 6d 61 2f 65 6d 70 | 6c 6f 79 65 65 73 2f 73 |ovma/emp|loyees/s|
|00000490| 61 79 65 67 68 2f 65 6e | 74 72 79 2e 68 74 6d 6c |ayegh/en|try.html|
|000004a0| 0a 09 73 69 67 6e 61 6c | 28 53 49 47 53 45 47 56 |..signal|(SIGSEGV|
|000004b0| 2c 53 49 47 5f 49 47 4e | 29 3b 0a |,SIG_IGN|);. |
+--------+-------------------------+-------------------------+--------+--------+